package model.actions;

import metier.GameState;
import metier.Objet;

public class GameOverAction extends Action {

	protected Boolean win = false;
	
	public GameOverAction() {
		super();
	}
	
	public GameOverAction(Boolean win) {
		super();
		this.win = win;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = -2190580296137783094L;

	@Override
	public void commit(GameState state, Objet sender) {
		state.gameOver(win);
	}

}
